<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加角色</title>
<link href="<%=basePath %>/css/bluemenu.css" rel="stylesheet" type="text/css" />
</head>
<form action="saverole.do" name="form1" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#53839F" bordercolordark="#FFFFFF">
  <tr>
  	<td>
  	<table>
  		<tr>
  			<td>角色名称:</td>
  			<td><input type="text" name="role.rosename" id="rosename"/></td>
  		</tr>
  		<tr>
  			<td>备　　注:</td>
  			<td><input type="text" name="role.des" id="des"/></td>
  		</tr>
			<tr>
				<td colspan="2">
				<table width="100%"  border="1">
				<s:iterator value="list" status="stat">
				<tr>
					<td>
					<input type="checkbox" name="checkfunction" value="<s:property value="id"/>"/><s:property value="functionname"/>
					</td>
					<td>
					<table border="1" width=100% heigth=100%>
					<s:iterator value="map.get(id)" status="statm">
						<tr>
						<td>
						<input type="checkbox" name="checkfunction" value="<s:property value="id"/>"/><s:property value="functionname"/>
						</td>
						<s:if test="map2.get(id).size>0">
						<td>
							<table>
								<tr>
								<s:iterator value="map2.get(id)">
								 	<td><input type="checkbox" name="checkfunction" value="<s:property value="id"/>"/><s:property value="functionname"/></td>
								</s:iterator>
								</tr>
							</table>
						</td>
						</s:if>
						</tr>
					</s:iterator>
					</table>
					</td>
				</tr>
				</s:iterator>
				</table>
				</td>
			</tr>
			<tr>
  		<td colspan="2" align="center">
  			<input type="submit" value="提交"/>&nbsp;&nbsp;<input type="reset" value="重置"/></td>
  		</tr>
  	</table>
  	</td>
  </tr>
    </table>
    </form>
</html>
